﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Web.Routing;

namespace Web7.Core
{
    public static class WorkContextExtensions
    {
        public static WorkContext GetWorkContext(this RequestContext requestContext)
        {
            return null;
        }

        public static WorkContext GetWorkContext(this ControllerContext controllerContext)
        {
            if (controllerContext == null)
                return null;

            return GetWorkContext(controllerContext.RequestContext);
        }
    }
}
